<html>
<head><meta charset="utf-8"><title>Performance · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Performance.html">Performance</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="224111777"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Performance/near/224111777" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CraftSpider <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Performance.html#224111777">(Jan 26 2021 at 22:09)</a>:</h4>
<div class="codehilite"><pre><span></span><code>+--------------------------------------------------+-----------+-----------------+----------+------------+
| Item                                             | Self time | % of total time | Time     | Item count |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| LLVM_module_codegen_emit_obj                     | 136.30s   | 51.631          | 136.30s  | 156        |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| LLVM_passes                                      | 49.03s    | 18.572          | 49.03s   | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| finish_ongoing_codegen                           | 27.80s    | 10.530          | 27.83s   | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| codegen_module                                   | 26.98s    | 10.222          | 27.93s   | 156        |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| codegen_fulfill_obligation                       | 2.75s     | 1.043           | 2.77s    | 152720     |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| LLVM_module_codegen                              | 2.48s     | 0.941           | 138.78s  | 156        |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| LLVM_module_optimize_module_passes               | 2.35s     | 0.891           | 2.35s    | 156        |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| link_rlib                                        | 2.15s     | 0.813           | 2.15s    | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| monomorphization_collector_graph_walk            | 1.96s     | 0.742           | 6.30s    | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| expand_crate                                     | 1.26s     | 0.478           | 1.38s    | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| symbol_name                                      | 1.21s     | 0.458           | 1.21s    | 352413     |
+--------------------------------------------------+-----------+-----------------+----------+------------+
| codegen_crate                                    | 1.18s     | 0.446           | 29.21s   | 1          |
+--------------------------------------------------+-----------+-----------------+----------+------------+
</code></pre></div>
<p>Wonderful performance summary, I'm guessing there's not much way to improve LLVM objects aside from just emitting less monomorphized code?</p>



<a name="224113753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Performance/near/224113753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Performance.html#224113753">(Jan 26 2021 at 22:25)</a>:</h4>
<p>You can also use the cranelift backend, I guess?</p>



<a name="224114342"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Performance/near/224114342" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CraftSpider <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Performance.html#224114342">(Jan 26 2021 at 22:30)</a>:</h4>
<p>That's actually probably a good idea for development, at least. Would make the turnaround better. It's tough to decrease generated code due to the nature of the crate</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>